tywx.StateInfo = {
    debugMode: !0,
    networkConnected: !0,
    socketConnected: !0,
    networkType: "unknown",
    networkStatus: 1,
    isOnForeground: !0
}, tywx.SystemInfo = {
    clientId: wxapp.Const.tyClientId,
    intClientId: wxapp.Const.tyIntClientId,
    cloudId: wxapp.Const.tyCloudId,
    version: wxapp.Const.tyVersion,
    webSocketUrl: "",
    loginUrl: wxapp.Const.tyLoginUrl,
    shareManagerUrl: wxapp.Const.shareManagerUrl,
    deviceId: "wechatGame",
    wxAppId: wxapp.Const.wxAppId,
    appId: wxapp.Const.tyAppId,
    hallId: wxapp.Const.tyHallId,
    gameId: wxapp.Const.tyGameId,
    cdnPath: wxapp.Const.cdnPath,
    remotePackPath: wxapp.Const.remotePackPath,
    biLogServer: "https://cbi.touch4.me/api/bilog5/text",
    biJsonLogServer: "https://cbi.touch4.me/api/bilog5/report",
    errorLogServer: "https://clienterr.touch4.me/api/bilog5/text/error"
}, tywx.UserInfo = {
    userId: 0,
    userName: "TuWechatGame",
    userPic: "",
    authorCode: "",
    systemType: 0,
    wechatType: "6.6.1",
    model: "未知设备",
    system: "iOS 10.0.1",
    loc: "",
    scene_id: "",
    scene_param: "",
    invite_id: 0,
    wxgame_session_key: ""
}, wxapp.appData.userInfo = tywx.UserInfo, wxapp.appData.systemInfo = tywx.SystemInfo, 
wxapp.appData.stateInfo = tywx.StateInfo, tywx.LOGD = function(t, n) {
    if (tywx.StateInfo.debugMode) {
        var e = (t = t || "tywx") + " : " + n;
        console.log(e);
    }
}, tywx.LOGE = function(t, n) {
    if (tywx.StateInfo.debugMode) {
        var e = (t = t || "tywx") + " : " + n;
        console.error(e);
    }
}, tywx.IsWechatPlatform = function() {
    try {
        return wx, !0;
    } catch (t) {
        return !1;
    }
}, function() {
    function t(t, n) {
        t[n >> 5] |= 128 << n % 32, t[14 + (n + 64 >>> 9 << 4)] = n;
        for (var c = 1732584193, i = -271733879, p = -1732584194, s = 271733878, f = 0; f < t.length; f += 16) {
            var w = c, d = i, x = p, h = s;
            i = a(i = a(i = a(i = a(i = o(i = o(i = o(i = o(i = r(i = r(i = r(i = r(i = e(i = e(i = e(i = e(i, p = e(p, s = e(s, c = e(c, i, p, s, t[f + 0], 7, -680876936), i, p, t[f + 1], 12, -389564586), c, i, t[f + 2], 17, 606105819), s, c, t[f + 3], 22, -1044525330), p = e(p, s = e(s, c = e(c, i, p, s, t[f + 4], 7, -176418897), i, p, t[f + 5], 12, 1200080426), c, i, t[f + 6], 17, -1473231341), s, c, t[f + 7], 22, -45705983), p = e(p, s = e(s, c = e(c, i, p, s, t[f + 8], 7, 1770035416), i, p, t[f + 9], 12, -1958414417), c, i, t[f + 10], 17, -42063), s, c, t[f + 11], 22, -1990404162), p = e(p, s = e(s, c = e(c, i, p, s, t[f + 12], 7, 1804603682), i, p, t[f + 13], 12, -40341101), c, i, t[f + 14], 17, -1502002290), s, c, t[f + 15], 22, 1236535329), p = r(p, s = r(s, c = r(c, i, p, s, t[f + 1], 5, -165796510), i, p, t[f + 6], 9, -1069501632), c, i, t[f + 11], 14, 643717713), s, c, t[f + 0], 20, -373897302), p = r(p, s = r(s, c = r(c, i, p, s, t[f + 5], 5, -701558691), i, p, t[f + 10], 9, 38016083), c, i, t[f + 15], 14, -660478335), s, c, t[f + 4], 20, -405537848), p = r(p, s = r(s, c = r(c, i, p, s, t[f + 9], 5, 568446438), i, p, t[f + 14], 9, -1019803690), c, i, t[f + 3], 14, -187363961), s, c, t[f + 8], 20, 1163531501), p = r(p, s = r(s, c = r(c, i, p, s, t[f + 13], 5, -1444681467), i, p, t[f + 2], 9, -51403784), c, i, t[f + 7], 14, 1735328473), s, c, t[f + 12], 20, -1926607734), p = o(p, s = o(s, c = o(c, i, p, s, t[f + 5], 4, -378558), i, p, t[f + 8], 11, -2022574463), c, i, t[f + 11], 16, 1839030562), s, c, t[f + 14], 23, -35309556), p = o(p, s = o(s, c = o(c, i, p, s, t[f + 1], 4, -1530992060), i, p, t[f + 4], 11, 1272893353), c, i, t[f + 7], 16, -155497632), s, c, t[f + 10], 23, -1094730640), p = o(p, s = o(s, c = o(c, i, p, s, t[f + 13], 4, 681279174), i, p, t[f + 0], 11, -358537222), c, i, t[f + 3], 16, -722521979), s, c, t[f + 6], 23, 76029189), p = o(p, s = o(s, c = o(c, i, p, s, t[f + 9], 4, -640364487), i, p, t[f + 12], 11, -421815835), c, i, t[f + 15], 16, 530742520), s, c, t[f + 2], 23, -995338651), p = a(p, s = a(s, c = a(c, i, p, s, t[f + 0], 6, -198630844), i, p, t[f + 7], 10, 1126891415), c, i, t[f + 14], 15, -1416354905), s, c, t[f + 5], 21, -57434055), p = a(p, s = a(s, c = a(c, i, p, s, t[f + 12], 6, 1700485571), i, p, t[f + 3], 10, -1894986606), c, i, t[f + 10], 15, -1051523), s, c, t[f + 1], 21, -2054922799), p = a(p, s = a(s, c = a(c, i, p, s, t[f + 8], 6, 1873313359), i, p, t[f + 15], 10, -30611744), c, i, t[f + 6], 15, -1560198380), s, c, t[f + 13], 21, 1309151649), p = a(p, s = a(s, c = a(c, i, p, s, t[f + 4], 6, -145523070), i, p, t[f + 11], 10, -1120210379), c, i, t[f + 2], 15, 718787259), s, c, t[f + 9], 21, -343485551), 
            c = u(c, w), i = u(i, d), p = u(p, x), s = u(s, h);
        }
        return Array(c, i, p, s);
    }
    function n(t, n, e, r, o, a) {
        return u(i(u(u(n, t), u(r, a)), o), e);
    }
    function e(t, e, r, o, a, c, u) {
        return n(e & r | ~e & o, t, e, a, c, u);
    }
    function r(t, e, r, o, a, c, u) {
        return n(e & o | r & ~o, t, e, a, c, u);
    }
    function o(t, e, r, o, a, c, u) {
        return n(e ^ r ^ o, t, e, a, c, u);
    }
    function a(t, e, r, o, a, c, u) {
        return n(r ^ (e | ~o), t, e, a, c, u);
    }
    function c(n, e) {
        var r = p(n);
        r.length > 16 && (r = t(r, n.length * h));
        for (var o = Array(16), a = Array(16), c = 0; c < 16; c++) o[c] = 909522486 ^ r[c], 
        a[c] = 1549556828 ^ r[c];
        var u = t(o.concat(p(e)), 512 + e.length * h);
        return t(a.concat(u), 640);
    }
    function u(t, n) {
        var e = (65535 & t) + (65535 & n);
        return (t >> 16) + (n >> 16) + (e >> 16) << 16 | 65535 & e;
    }
    function i(t, n) {
        return t << n | t >>> 32 - n;
    }
    function p(t) {
        for (var n = Array(), e = (1 << h) - 1, r = 0; r < t.length * h; r += h) n[r >> 5] |= (t.charCodeAt(r / h) & e) << r % 32;
        return n;
    }
    function s(t) {
        for (var n = "", e = (1 << h) - 1, r = 0; r < 32 * t.length; r += h) n += String.fromCharCode(t[r >> 5] >>> r % 32 & e);
        return n;
    }
    function f(t) {
        for (var n = d ? "0123456789ABCDEF" : "0123456789abcdef", e = "", r = 0; r < 4 * t.length; r++) e += n.charAt(t[r >> 2] >> r % 4 * 8 + 4 & 15) + n.charAt(t[r >> 2] >> r % 4 * 8 & 15);
        return e;
    }
    function w(t) {
        for (var n = "", e = 0; e < 4 * t.length; e += 3) for (var r = (t[e >> 2] >> e % 4 * 8 & 255) << 16 | (t[e + 1 >> 2] >> (e + 1) % 4 * 8 & 255) << 8 | t[e + 2 >> 2] >> (e + 2) % 4 * 8 & 255, o = 0; o < 4; o++) 8 * e + 6 * o > 32 * t.length ? n += x : n += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r >> 6 * (3 - o) & 63);
        return n;
    }
    var d = 0, x = "", h = 8;
    tywx.hex_md5 = function(n) {
        return f(t(p(n), n.length * h));
    }, tywx.b64_md5 = function(n) {
        return w(t(p(n), n.length * h));
    }, tywx.str_md5 = function(n) {
        return s(t(p(n), n.length * h));
    }, tywx.hex_hmac_md5 = function(t, n) {
        return f(c(t, n));
    }, tywx.b64_hmac_md5 = function(t, n) {
        return w(c(t, n));
    }, tywx.str_hmac_md5 = function(t, n) {
        return s(c(t, n));
    };
}();